import { myGet, myPost, myDelete } from './axios'
//查询用户列表
export const getuser = (params) => {
    return myGet('/auth/userlist', params)
}
//查询单条活码
export const getactivecode = (params) => {
    return myGet('/qrcode/getqrcode', params)
}

//编辑活码
export const setqrcode = (params) => {
    return myPost('/qrcode/setqrcode', params)
}
//添加用户
export const register = (params) => {
    return myPost("/auth/register", params)
}
//获取活码列表
export const getcodeall = (params) => {
    return myPost("/qrcode/getcodeall", params)
}
//获取活码清零次数
export const putnum = (params) => {
    return myGet('/qrcode/clear', params)
}
//修改密码
export const setpass = (params) => {
    return myPost('/auth/setpass', params)
}
//获取子码列表
export const getsubcode = (params) => {
    return myPost("/subcode/getsubcode", params)
}
//获取子码ip列表
export const getsubcodeip = (params) => {
    return myPost("/subcode/listip", params)
}
//获取单独子码列表
export const getsubcodeone = (params) => {
    return myGet('/subcode/getsubcode', params)
}
//编辑子码
export const setsubcode = (params) => {
    return myPost("/subcode/setsubcode", params)
}
//新增活码
export const addqrcode = (params) => {
    return myPost("/qrcode/addqrcode", params)
}
//登录
export const login = (params) => {
    return myPost("/auth/login", params)
}
//删除单条活码
export const delqrcode = (params) => {
    return myDelete("/qrcode/delqrcode", params)
}
//删除全部活码
export const allcode = (params) => {
    return myDelete("/qrcode/allcode", params)
}
//删除子码
export const delsubcode = (params) => {
    return myDelete("/subcode/delsubcode", params)
}
//删除全部子码
export const allsubcode = (params) => {
    return myDelete("/subcode/allsubcode", params)
}
//删除用户
export const deuser = (params) => {
    return myDelete("/auth/deuser", params)
}
//获取域名列表
export const getdomainlist = (params) => {
    return myGet('/domain', params)
}
//新增域名
export const adddomain = (params) => {
    return myPost("/domain", params)
}
//删除域名
export const deletedomain = (params) => {
    console.log(params)
    return myDelete(`/domain/${params.id}`)
}
